// 绑定下载文档事件
$("#doc").on("click", function() {
	window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {

		console.log('打开的文件系统: ' + fs.name);
		var url = 'http://www.hangge.com/blog/images/logo.png';
		fs.root.getFile('hangge.png', {
			create : true,
			exclusive : false
		}, function(fileEntry) {
			download(fileEntry, url);
		}, onErrorCreateFile);

	}, onErrorLoadFs);

})